package com.android.binderserverclient0.workmanager

import android.content.Context
import android.util.Log
import androidx.work.Worker
import androidx.work.WorkerParameters

class CheckSystemWorker(context: Context, workerParameters: WorkerParameters) : Worker(context, workerParameters) {

    override fun doWork(): Result {
        Thread.sleep(3000)
        Log.d(TAG, "CheckSystemWorker(context: Context, workerParameters: WorkerParameters)")
        //Result.success()  成功
        //Result.failure()  失败
        //Result.retry()    重试
        return Result.success()
    }

    companion object {
        const val TAG = "CheckSystemWorker"
    }
}
